package com.laowang.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 商品购买对象 my_goods_buy
 *
 * @author laowang
 * @date 2023-07-21
 */
@NoArgsConstructor
@Data
public class MyGoodsBuy implements Serializable {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /** 商品id 关联goods.id */
    @Excel(name = "商品id 关联goods.id")
    @ApiModelProperty(value = "商品id 关联goods.id", required = false)
    private Integer goodsId;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty(value = "用户id", required = false)
    private Integer userId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiModelProperty(value = "商品名称", required = false)
    private String goodsName;

    /** 浏览时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "浏览时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "浏览时间", required = false)
    private Date ctime;

    /** 0待发货,1已发货 */
    @Excel(name = "0待发货,1已发货")
    @ApiModelProperty(value = "0待发货,1已发货", required = false)
    private Integer status;

    /** 商品图片 */
    @Excel(name = "商品图片")
    @ApiModelProperty(value = "商品图片", required = false)
    private String img;

    /** 分类id */
    @Excel(name = "分类id")
    @ApiModelProperty(value = "分类id", required = false)
    private String cat;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格", required = false)
    private BigDecimal price;

    /** 1自取,2快递 */
    @Excel(name = "1自取,2快递")
    @ApiModelProperty(value = "1自取,2快递", required = false)
    private Integer receiveMode;

    /** 地址 */
    @Excel(name = "地址")
    @ApiModelProperty(value = "地址", required = false)
    private String address;

    /** 快递类型 */
    @Excel(name = "快递类型")
    @ApiModelProperty(value = "快递类型", required = false)
    private String deliveryType;

    /** 快递单号 */
    @Excel(name = "快递单号")
    @ApiModelProperty(value = "快递单号", required = false)
    private String number;

    /** 姓名  */
    @Excel(name = "姓名 ")
    @ApiModelProperty(value = "姓名 ", required = false)
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    @ApiModelProperty(value = "手机号", required = false)
    private String phone;

    /** 积分 */
    @Excel(name = "积分")
    @ApiModelProperty(value = "积分", required = false)
    private Integer jifen;


    private Integer num;

    /** 金币 */
    @Excel(name = "金币")
    @ApiModelProperty(value = "金币", required = false)
    private Integer jinbi;

    /** 人民币 */
    @Excel(name = "人民币")
    @ApiModelProperty(value = "人民币", required = false)
    private BigDecimal rmb;

    /** 0积分,1金币,2积分和金币,3人民币 */
    @Excel(name = "0积分,1金币,2积分和金币,3人民币")
    @ApiModelProperty(value = "0积分,1金币,2积分和金币,3人民币", required = false)
    private Integer isCombo;

    /** 0待支付,1已支付 */
    @Excel(name = "0待支付,1已支付")
    @ApiModelProperty(value = "0待支付,1已支付", required = false)
    private Integer isPay;

    /** 订单id */
    @Excel(name = "订单id")
    @ApiModelProperty(value = "订单id", required = false)
    private String orderId;


}
